# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-acer-t01
pkgdesc="Acer Liquid Z330"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-postmarketos-qcom-msm8916
	mkbootimg
	postmarketos-base
	soc-qcom-msm8909
	soc-qcom-msm8916-rproc
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
_pmb_select="soc-qcom-msm8916-rproc"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="
		firmware-qcom-adreno-a300
		msm-firmware-loader
		firmware-acer-t01-wcnss-nv
	"
	mkdir "$subpkgdir"
}

sha512sums="
ac76d059a6725c3d8a15b4d66f3c88e1f719d8f99c92b4b5d22292b5c6df3203749d5bdef1d3dba5f8daca7cf33e7e869093c86cb83593c7994821aa791abba8  deviceinfo
a0e3f4ca9dd9bb171b021ee07a2aaf3886b3d6376bb38298128b0bf0325a2305e48ba42a37105b13f7f469fb98d8326c8ce95b6259f8974a4f04b09acb3af7f2  modules-initfs
"
